import random

print("The number is between 0 and 100")

answer = random.randrange(0,101)
print(answer)
count =0

while True:
    count+=1
    n=int(input("请输入一个数字："))

    if n==answer:
        print("恭喜你你猜对了",answer,count)
        break
    elif n > answer:
        print("猜大了")
    elif n<answer:
        print("猜小了")

